import BTConditional from "../../Base/BTConditional";
import Blackboard from "../../Blackboard";
import { NodeStatus } from "../../Enum";

export default class ConditionalHp extends BTConditional
{

    onUpdate()
    {
        console.log("Blackboard.instance.hp is ", Blackboard.instance.hp, "res is ", Blackboard.instance.hp >= 100);
		if (Blackboard.instance.hp >= 100)
        {
            return NodeStatus.Success;
		}
        return NodeStatus.Failure;
    }
}